package com.vdong.shardingorder.vo.order.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


@Data
@ApiModel(value = "添加订单")
public class SaveOrderReqVO {

    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;
    @ApiModelProperty(value = "总金额", required = true)
    private Integer totalMoney;
    @ApiModelProperty(value = "优惠金额", required = true)
    private Integer couponMoney;
    @ApiModelProperty(value = "邮费", required = true)
    private Integer postageMoney;
    @ApiModelProperty(value = "实际金额", required = true)
    private Integer actualMoney;
    @ApiModelProperty(value = "状态", required = true)
    private Integer status;
    @ApiModelProperty(value = "售后状态", required = true)
    private Integer afterStatus;
    @ApiModelProperty(value = "订单详情", required = true)
    private List<Detail> details;

    @Data
    @ApiModel(value = "添加订单-订单详情")
    public static class Detail {
        @ApiModelProperty(value = "商品id", required = true)
        private Long goodsId;
        @ApiModelProperty(value = "商品名称", required = true)
        private String goodsName;
        @ApiModelProperty(value = "价格", required = true)
        private Integer price;
        @ApiModelProperty(value = "数量", required = true)
        private Integer num;
        @ApiModelProperty(value = "金额", required = true)
        private Integer money;
        @ApiModelProperty(value = "图片地址", required = true)
        private String img;
    }

}


